package com.lanou3g.ptp.task.mapper;

import com.lanou3g.ptp.entity.Task;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface TaskMapper {
    void insert(Task task);

    void delete(Long id);

    void deletes(Long[] ids);

    void update(@Param("id") Long id,@Param("t") Task task);

    List<Task> findAll();

    List<Task> findByKeyword(String keyword);

    Task findById(Long id);

    List<Task> findAll1(Long teaachlinkId);

    void updates(@Param("id") Long[] taskIds, @Param("t") Task task);
}
